package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZFZB_MX"
 *     
*/
public class ZfzbMx implements Serializable {

    /** identifier field */
    private String hfmxbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private String zffsDm;

    /** persistent field */
    private String yszbbh;

    /** nullable persistent field */
    private String xmbh;

    /** nullable persistent field */
    private BigDecimal jygs;

    /** nullable persistent field */
    private BigDecimal sbgs;

    /** persistent field */
    private BigDecimal je;

    /** nullable persistent field */
    private BigDecimal sbje;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String hfztbh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;
    
    /** nullable persistent field */
    private BigDecimal xmgs;
    
    /** persistent field */
    private BigDecimal xdje;

    /** full constructor */
    
    private String xmlx;



	public String getXmlx() {
		return xmlx;
	}

	public void setXmlx(String xmlx) {
		this.xmlx = xmlx;
	}

	public ZfzbMx(String hfmxbh, String nd, String zffsDm, String yszbbh,
			String xmbh, BigDecimal jygs, BigDecimal sbgs, BigDecimal je,
			BigDecimal sbje, String dwbh, String hfztbh, String zt1,
			String zt2, BigDecimal xmgs, BigDecimal xdje) {
		super();
		this.hfmxbh = hfmxbh;
		this.nd = nd;
		this.zffsDm = zffsDm;
		this.yszbbh = yszbbh;
		this.xmbh = xmbh;
		this.jygs = jygs;
		this.sbgs = sbgs;
		this.je = je;
		this.sbje = sbje;
		this.dwbh = dwbh;
		this.hfztbh = hfztbh;
		this.zt1 = zt1;
		this.zt2 = zt2;
		this.xmgs = xmgs;
		this.xdje = xdje;
	}

	/** default constructor */
    public ZfzbMx() {
    }

    /** minimal constructor */
    public ZfzbMx(String hfmxbh, String nd, String zffsDm, String yszbbh, BigDecimal je, String dwbh) {
        this.hfmxbh = hfmxbh;
        this.nd = nd;
        this.zffsDm = zffsDm;
        this.yszbbh = yszbbh;
        this.je = je;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="HFMXBH"
     *         
     */
    public String getHfmxbh() {
        return this.hfmxbh;
    }

    public void setHfmxbh(String hfmxbh) {
        this.hfmxbh = hfmxbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="ZFFS_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZffsDm() {
        return this.zffsDm;
    }

    public void setZffsDm(String zffsDm) {
        this.zffsDm = zffsDm;
    }

    /** 
     *            @hibernate.property
     *             column="YSZBBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getYszbbh() {
        return this.yszbbh;
    }

    public void setYszbbh(String yszbbh) {
        this.yszbbh = yszbbh;
    }

    /** 
     *            @hibernate.property
     *             column="XMBH"
     *             length="50"
     *         
     */
    public String getXmbh() {
        return this.xmbh;
    }

    public void setXmbh(String xmbh) {
        this.xmbh = xmbh;
    }

    /** 
     *            @hibernate.property
     *             column="JYGS"
     *             length="38"
     *         
     */
    public BigDecimal getJygs() {
        return this.jygs;
    }

    public void setJygs(BigDecimal jygs) {
        this.jygs = jygs;
    }

    /** 
     *            @hibernate.property
     *             column="SBGS"
     *             length="38"
     *         
     */
    public BigDecimal getSbgs() {
        return this.sbgs;
    }

    public void setSbgs(BigDecimal sbgs) {
        this.sbgs = sbgs;
    }

    /** 
     *            @hibernate.property
     *             column="JE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getJe() {
        return this.je;
    }

    public void setJe(BigDecimal je) {
        this.je = je;
    }

    /** 
     *            @hibernate.property
     *             column="SBJE"
     *             length="16"
     *         
     */
    public BigDecimal getSbje() {
        return this.sbje;
    }

    public void setSbje(BigDecimal sbje) {
        this.sbje = sbje;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="HFZTBH"
     *             length="50"
     *         
     */
    public String getHfztbh() {
        return this.hfztbh;
    }

    public void setHfztbh(String hfztbh) {
        this.hfztbh = hfztbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    /** 
     *            @hibernate.property
     *             column="XMGS"
     *             length="38"
     *         
     */
    public BigDecimal getXmgs() {
		return xmgs;
	}

	public void setXmgs(BigDecimal xmgs) {
		this.xmgs = xmgs;
	}

    
    /** 
     *            @hibernate.property
     *             column="XDJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getXdje() {
		return xdje;
	}

	public void setXdje(BigDecimal xdje) {
		this.xdje = xdje;
	}

	
	public String toString() {
        return new ToStringBuilder(this)
            .append("hfmxbh", getHfmxbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZfzbMx) ) return false;
        ZfzbMx castOther = (ZfzbMx) other;
        return new EqualsBuilder()
            .append(this.getHfmxbh(), castOther.getHfmxbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getHfmxbh())
            .toHashCode();
    }

}
